package designmode.proxy.dynamicproxy;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;

/**
 * 创建时间：2018年03月26日10:16 <br>
 * 作者：fuchaoyang <br>
 * 描述：
 */

public class TestProxyUI extends Activity {

  @Override protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    CalImpl cal = new CalImpl();
    Calculator calc = (Calculator) new CalculatorHandler().getInstance(cal);
    calc.add(1, 2);
  }
}
